package com.tju.ffmpeglib

import android.util.Log

class FFmpegNDK {

    companion object {
        private val TAG = "FFmpegNDK"

        external fun decode(url: String)

        external fun pause()

        external fun playPcm(url: String)

        init {
            System.loadLibrary("native-lib")

            System.loadLibrary("avcodec-57")
            System.loadLibrary("avfilter-6")
            System.loadLibrary("avformat-57")
            System.loadLibrary("avutil-55")
            System.loadLibrary("swresample-2")
            System.loadLibrary("swscale-4")

            System.loadLibrary("OpenSLES")
        }
    }

}